package com.csnf.order.feign;

import com.csnf.order.feign.fallback.ProductFeignFallback;
import com.csnf.pojo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-product",fallback = ProductFeignFallback.class)
public interface ProductFeignClient {

    //获取商品信息
    @GetMapping("/product/getProductById")
    Product getProductById(@RequestParam("id") Integer id);


}
